<?php
/**
 * Created by PhpStorm.
 * User: peter
 * Date: 2018/6/26
 * Time: 下午1:49
 */

namespace app\mall\controller;


use app\mall\logic\Configure;
use extend\Functions;
use extend\STATUS_CODE;

class Index extends Base
{

    /**
     * 获取应用首页数据
     */
    public function homeData ()
    {
        $slide          = Configure::getConfigure('app_swiper');
        $block_item     = Configure::getConfigure('app_block_item');
        $brand          = Configure::getConfigure('app_brand');
        return Functions::result(
            STATUS_CODE::SUCCESS,
            [
                'slide'         => $slide['data'],
                'block_item'    => $block_item['data'],
                'brand'         => $brand['data']
            ]
        );
    }
}